function labCheckIn() {
	//Data
	var labScanBarcode = $('input[name=labScanBarcode]');
	
	if ( ValidateInputBox('labScanBarcode', 'mLabScan'));
	{
		var data = 'labScanBarcode=' + labScanBarcode.val();
		
		$.ajax({
			url : "/scan/labBarcodeScan",
			type : "POST",
			data : data,
			cache : false,
			
			//Function called when AJAX return a success.
			success : function() {
				$('span[id=mLabScanPass]').removeClass('hiddenMessage');
				$('span[id=mLabScanErr]').addClass('hiddenMessage');
				
				document.getElementById('labScan').reset();
				
				//TODO: Update table to reflect the changes
				
			},
			// Function to be called when AJAX return a failure.
			failure : function() {
				$('span[id=mLabScanPass]').addClass('hiddenMessage');
				$('span[id=mLabScanErr]').removeClass('hiddenMessage');
			},
			
			error : function() {
				$('span[id=mLabScanPass]').addClass('hiddenMessage');
				$('span[id=mLabScanErr]').removeClass('hiddenMessage');
			}
		});
			
	}
	
}